import request from '@/utils/request'
// -------- 咨询 --------

let BASE_ADDRESS = 'doc/consult'

//  修改
export function getConsultEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

//  添加回复
export function getConsultInsertAnswerApi(data) {
    return request({
        url: `${BASE_ADDRESS}/insertAnswer`,
        method: "post",
        data
    })
}

// 获取专家id /system/user/profile/getRoleId
export const getUserProfileGetRoleIdApi = () =>{
    return request({
        url: `/system/user/profile/getRoleId`,
        method: "get",
    })
}